<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class SVoucherInfo extends Model
{

    use SoftDeletes;
    public $table = "s_voucher_info";

    protected $fillable = [
       'title', 'voucher', 'desc', 'user_id', 'admin_id', 'use_time', 'created_at', 'updated_at'
    ];

    public function adminUsers()
    {
        return $this->belongsTo('App\Models\AdminUsers', 'admin_id');
    }

    public function users()
    {
        return $this->belongsTo('App\User', 'user_id');
    }

}
